-- card: 60082 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 4755 -- name: -- part contents for background part 4 ----- text ----- additional variables and methods or redefine ("override") an existing method. TC provides the 'inherited' keyword — not available in C++ — to simplify access to the original method from within an overriding definition. The scope resolution operator :: is used when defining methods and when calling methods without refering to a particular object. The 'this' identifier is used to refer to the object receiving a message. Significantly, object identifiers are usually implemented as Macintosh "handles" in TC, which requires care to be taken when taking the address of instance variables or when dynamically allocating elements of an array of instance variables*. This is not generally the case with C++. TC extends ANSI C with a few non-object-oriented features. TC provides the new storage class 'pascal' and allows Pascal string definitions since the Macintosh Toolbox ROM routines use Pascal calling conventions. TC also provides a special feature to avoid file reinclusion**, especially useful with object-oriented programs. TC supplies extensive specialized libraries for Macintosh programming. -- part contents for background part 29 ----- text ----- 38494 54516 -- part contents for background part 27 ----- text ----- Macintosh handles File reinclusion -- part contents for background part 20 ----- text ----- Macintosh handles - p123 -- part contents for background part 7 ----- text ----- 217 -- part contents for background part 23 ----- text ----- File reinclusion - p177